package com.itheima.admin.feign;

import com.itheima.admin.pojo.AdChannel;
import com.itheima.common.vo.ResultVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * @version 1.0
 * @description 频道的远程调用 接口定义
 * @package com.itheima.admin.feign
 */
@FeignClient(name = "leadnews-admin", path = "/channel",contextId = "adChannelFeign")
public interface AdChannelFeign {
    /**
     * 频道列表，查询所有频道信息
     * @return
     */
    @GetMapping
    ResultVo<List<AdChannel>> listAll();
}
